package com.lanou3g.demo.mapper;

import com.lanou3g.demo.entity.RoleInfo;
import com.lanou3g.demo.entity.RoleModule;

import java.util.List;

public interface RoleInfoMapper {
    List<RoleInfo> findAllWithRole();

    RoleInfo selectRole(RoleInfo roleInfo);

    int insertWithRoleInfo(RoleInfo roleInfo);

    int insertWithRoleModule(List<RoleModule> roleModules);

    List<RoleModule> selectRoleModule(RoleInfo roleInfo);

    int deleteRole(RoleInfo roleInfo);

    int deleteRoleWithRoleModule(RoleInfo roleInfo);

}